package com.android.lovingpet.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by ikata on 2018/5/5.
 */

public class Pet extends Body implements Parcelable {
    private String name;
    private String birthday;
    private String gender;
    private String kind;
    private String masterId;
    private int sterilize;
    private String type;
    private String demand;
    private int immune;
    private int source;
    private String video;

    public int getSterilize()
    {
        return sterilize;
    }

    public void setSterilize(int sterilize) {
        this.sterilize = sterilize;
    }

    public int getImmune() {
        return immune;
    }

    public void setImmune(int immune) {
        this.immune = immune;
    }

    public int getSource() {
        return source;
    }

    public void setSource(int source) {
        this.source = source;
    }
    public String getVideo() {
        return video;
    }

    public void setVideo(String video) {
        this.video = video;
    }


    public String getDemand() {
        return demand;
    }

    public void setDemand(String demand) {
        this.demand = demand;
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getKind() {
        return kind;
    }

    public void setKind(String kind) {
        this.kind = kind;
    }

    public String getMasterId() {
        return masterId;
    }

    public void setMasterId(String masterId) {
        this.masterId = masterId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Pet()
    {

    }

    protected Pet(Parcel in) {
        super(in);
        name = in.readString();
        birthday = in.readString();
        gender = in.readString();
        kind = in.readString();
        masterId = in.readString();
        sterilize = in.readInt();
        type = in.readString();
        immune=in.readInt();
        source=in.readInt();
        video=in.readString();
        demand=in.readString();
    }

    public static final Creator<Pet> CREATOR = new Creator<Pet>() {
        @Override
        public Pet createFromParcel(Parcel in) {
            return new Pet(in);
        }

        @Override
        public Pet[] newArray(int size) {
            return new Pet[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        super.writeToParcel(dest,flags);
        dest.writeString(name);
        dest.writeString(birthday);
        dest.writeString(gender);
        dest.writeString(kind);
        dest.writeString(masterId);
        dest.writeInt(sterilize);
        dest.writeString(type);
        dest.writeInt(immune);
        dest.writeInt(source);
        dest.writeString(video);
        dest.writeString(demand);
    }
}
